package ecom.appcode.dao.daointerface;

import java.util.List;

import javax.mail.MessagingException;
import javax.mail.internet.AddressException;

import ecom.appcode.common.daobean.UsersDaoBean;

public interface UsersDao {

    /** check Login email and password */
    boolean checkLogin(String email, String password);

    /** Register Account */
    boolean registerAccount(String email, String password, String sex, String birthday, String firstName,
            String lastName, boolean admin, String address, int phoneNumber);

    /** Select all Users for admin page */
    List<UsersDaoBean> loadAllUsers();
    
    /** Select Users for admin page */
    UsersDaoBean loadUsersByEmail(String strEmail);
    
    /** update User */
    boolean updateAccount(String email, String password, String sex, String birthday, String firstName,
            String lastName, boolean admin, String address, int phoneNumber);
    
    /** Delete User */
    boolean deleteAccount(String email);
    
    /** Send Mail Contact */
//    void sendEmail(String to, String account, String message) throws AddressException, MessagingException;
}
